package moxl.parser.assemblers;

import moxl.parser.markup.Markup;

public class MarkupResultHolder
{
	private Markup markup;

	public boolean isEmpty()
	{
		return markup == null;
	}

	public Markup getMarkup()
	{
		return markup;
	}

	public void setMarkup(Markup markup)
	{
		if (isEmpty())
		{
			this.markup = markup;
		}
		else
		{
			throw new IllegalStateException("Markup is already set");
		}
	}

}
